export default {
    types: [
        {
            name: '上浮',
            value: '1'
        },
        {
            name: '下降',
            value: '2'
        },
        {
            name: '不变',
            value: '0'
        }
    ],
    values: [
        5,
        10,
        20,
        50
    ],
    /**
     * 获取涨幅
     * @param cur   当年已涨幅
     * @returns {Array}
     */
    getValues(cur = 0) {
        const values = [];
        const MAX = 50;
        const maxSalary = cur < 0 ? 50 : MAX - cur;

        for (let i = 5; i <= maxSalary; i += 5) {
            values.push(i);
        }

        return values;
    }
}
